From 9e59df07469b1053930cc2532e9d9bfab7644041 Mon Sep 17 00:00:00 2001 From: Boyuan Yang Date: Tue, 9 Sep 2025 08:25:14 -0400 Subject: [PATCH] Force build with c++17 Needed by googletest. Gbp-Pq: Name 0002-Force-build-with-c-17.patch --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdf702c..2f2776c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,7 +155,7 @@ add_definitions( if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") add_definitions( - -std=c++14 + -std=c++17 -Wall ) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread") @@ -164,7 +164,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") endif () elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") add_definitions( - -std=c++14 + -std=c++17 -Wall ) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread") -- 2.30.2